package edu.msg.jthr.backend.repository.service;

import java.util.List;

import javax.ejb.Local;

import edu.msg.jthr.backend.repository.exception.RepositoryException;

@Local
public interface RepositoryInterface<T,I> {
	public List<T> getAll() throws RepositoryException;

	public T getById(I id) throws RepositoryException;

	public void create(T obj) throws RepositoryException;

	public void delete(T obj) throws RepositoryException;

	public T update(T obj) throws RepositoryException;
}
